#include "ComLog.h"



eComLogDebugLevel MAX_DEBUG_LEVEL = COMLOG_MAX;
LogHook sHook = NULL;
void ComLogSetLevel(eComLogDebugLevel level)
{
   MAX_DEBUG_LEVEL = level;
}



void ComLogSetHook(LogHook hook)
{

   sHook = hook;

}

void ComLogSendToHook(char *str)
{
   if(str != NULL && sHook != NULL)
      {
          sHook(str);   
      }  

}